﻿#ifndef DAOLOGININFO_H
#define DAOLOGININFO_H

#include "src/middle/helper/dbsqlite.h"

#include "src/middle/structs/dbmodels.h"

/// @brief 登录会话信息 DAO (基类)
///
class DaoLoginInfo
{
public:
    DaoLoginInfo();

    virtual bool exists(const QString& secretId) = 0;
    virtual void insert(const LoginInfo& info) = 0;
    virtual void update(const LoginInfo& info) = 0;
    virtual void remove(const QString& secretId) = 0;
    virtual QList<LoginInfo> select() = 0;

    virtual void connect() = 0;
    virtual void createTable() = 0;
};

#endif // DAOLOGININFO_H
